package com.example.xpvideo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 总订单
 * @TableName ls_order_trade
 */
@TableName(value ="ls_order_trade")
@Data
public class OrderTrade implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 订单编号
     */
    private String tSn;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 订单商品总价
     */
    private BigDecimal goodsPrice;

    /**
     * 应付款金额
     */
    private BigDecimal orderAmount;

    /**
     * 订单总价
     */
    private BigDecimal totalAmount;

    /**
     * 优惠金额
     */
    private BigDecimal discountAmount;

    /**
     * 第三方平台交易流水号
     */
    private String transactionId;

    /**
     * 下单时间
     */
    private Integer createTime;

    /**
     * 
     */
    private String shopId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}